import { lazy } from "react";

const Layout=lazy(()=>import("../pages/Layout"))
const Login=lazy(()=>import("../pages/Login"))
const Home=lazy(()=>import("../pages/Home"))
const Table=lazy(()=>import("../pages/Table"))

export const handleHommes=[
  {
    path:'/',
    element:<Home></Home>,
    title:"首页"
  },
  {
    path:"/table",
    element:<Table></Table>,
    title:"表格"
  }
]

export const routes=[
  {
    path:"/",
    element:<Layout></Layout>,
    children:handleHommes
  },
  {
    path:"/login",
    element:<Login></Login>
  }
]